package com.health.mapper;

import com.health.domain.pojo.Member;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author ghy
 * @version 1.0
 * @since 2025-06-24 10:00
 */
@Mapper
public interface MemberMapper {

    /**
     * 根据手机号查询会员
     * @param phoneNumber 手机号
     * @return
     */
    @Select("select * from t_member where phoneNumber = #{phoneNumber}")
    Member selectByPhoneNumber(String phoneNumber);

    void insert(Member member);
}
